<?php


class myException extends Exception
{
    public function getAllInfo(){
        return "错误：错误信息是".$this->getMessage();
    }
}
//$x=new Exceptions();


try{
    $a=new Exception("错误");
    throw $a;
}catch (myException $x){
    echo "my";
    //echo $x->getAllInfo();
}
catch (Exception $x){
    echo "Exception";
    //echo $x->getAllInfo();
}